﻿/**
 * Created with JetBrains WebStorm.
 * User: kane
 * Date: 13-2-27
 * Time: 下午6:57
 * To change this template use File | Settings | File Templates.
 */
var client = require('../util/redis');

exports.main = function(args,req, res){
    client.hlen(settings.sessionKey, function(err,num){
        var info = num;
        if(err){
            info = err;
        }
        res.render('index', { title: 'Express default '+info });
    });
};